import request from '@/api/index'

/**
 * 获取审批列表
 * @param {*} data 
 * @returns 
 */
export function queryApprovePageList(data) {
    return request({
        url: '/approveProcess/queryApprovePageList',
        method: 'POST',
        data
    })
}
/**
 * 提交审批流
 * @param {*} data 
 * @returns 
 */
export function commitApprove(data) {
    return request({
        url: '/approveProcess/commitApprove',
        method: 'POST',
        data
    })
}
/**
 * 获取审批详情
 * @param {*} data 
 * @returns 
 */
export function queryApproveDetailByID(data) {
    return request({
        url: '/approveProcess/queryApproveDetailByID',
        method: 'POST',
        data
    })
}
/**
 * 取消审批
 * @param {*} data 
 * @returns 
 */
export function cancelApprove(data) {
    return request({
        url: '/approveProcess/cancelApprove',
        method: 'POST',
        data
    })
}
/**
 * 重新发起
 * @param {*} data 
 * @returns 
 */
export function cancelStart(data) {
    return request({
        url: '/approveProcess/cancelStart',
        method: 'POST',
        data
    })
}
/**
 * 驳回
 * @param {*} data 
 * @returns 
 */
export function reject(data) {
    return request({
        url: '/approveProcess/reject',
        method: 'POST',
        data
    })
}
/**
 * 驳回
 * @param {*} data 
 * @returns 
 */
export function approve(data) {
    return request({
        url: '/approveProcess/approve',
        method: 'POST',
        data
    })
}
/**
 * 获取组织架构人员下拉列表
 * @param {*} data 
 * @returns 
 */
export function queryOrganizeFrameworkPeopleSelect(data) {
    return request({
        url: '/organizeFramework/queryOrganizeFrameworkPeopleSelect',
        method: 'POST',
        data
    })
}
/**
 * 获取审批流程组织架构
 * @param {*} data 
 * @returns 
 */
export function queryApproveFramework(data) {
    return request({
        url: '/approveProcess/queryApproveFramework',
        method: 'POST',
        data
    })
}
/**
 * 推进列表
 * @param {*} data 
 * @returns 
 */
export function queryProcessPageList(data) {
    return request({
        url: '/processNode/queryProcessPageList',
        method: 'POST',
        data
    })
}
/**
 * 获取流程详情
 * @param {*} data 
 * @returns 
 */
export function queryProcessDetailByID(data) {
    return request({
        url: '/processNode/queryProcessDetailByID',
        method: 'POST',
        data
    })
}
/**
 * 保存流程节点
 * @param {*} data 
 * @returns 
 */
export function saveProcessNode(data) {
    return request({
        url: '/processNode/saveProcessNode',
        method: 'POST',
        data
    })
}
/**
 * 修改流程节点
 * @param {*} data 
 * @returns 
 */
export function updateProcessNode(data) {
    return request({
        url: '/processNode/updateProcessNode',
        method: 'POST',
        data
    })
}
/**
 * 获取人员正在跟进的流程
 * @param {*} data 
 * @returns 
 */
export function queryInProgressProcessPageListByID(data) {
    return request({
        url: '/processNode/queryInProgressProcessPageListByID',
        method: 'POST',
        data
    })
}
/**
 * 获取流程节点详情
 * @param {*} data 
 * @returns 
 */
export function queryProcessNodeDetailByID(data) {
    return request({
        url: '/processNode/queryProcessNodeDetailByID',
        method: 'POST',
        data
    })
}
/**
 * 删除流程节点
 * @param {*} data 
 * @returns 
 */
export function deleteProcessNode(data) {
    return request({
        url: '/processNode/deleteProcessNode',
        method: 'POST',
        data
    })
}
